package com.sztle.admodule.resp.api;


import androidx.annotation.Keep;

import com.sztle.admodule.resp.base.AdBaseResponse;
import com.sztle.admodule.control.output.SzOutPrePrivacyConfig;
import com.sztle.admodule.control.output.SzOutRiskHitDeviceResult;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;

@Keep
public interface RiskControlApi {

    @POST("/api/risk/config")
    Call<AdBaseResponse<SzOutPrePrivacyConfig>> getPrePrivacyConfig(@HeaderMap Map<String, String> commheadMap, @Body RequestBody inPackageInfo);

    @POST("/api/risk/hitApp")
    Call<AdBaseResponse<String>> hitTargetApp(@HeaderMap Map<String, String> commheadMap, @Body RequestBody inHitAppParam);

    @POST("/api/risk/info")
    Call<AdBaseResponse<SzOutRiskHitDeviceResult>> getRiskAdjustResult(@HeaderMap Map<String, String> commheadMap, @Body RequestBody inRiskDeviceParam);

    @POST("/api/log/userLog")
    Call<AdBaseResponse<String>> reportCommLog(@HeaderMap Map<String, String> commheadMap, @Body RequestBody inEventParam);

    //事件回传
    @POST("/api/up/add")
    Call<AdBaseResponse<String>> reportEvent(@HeaderMap Map<String, String> commheadMap, @Body RequestBody inEventParam);


    @POST("api/bus/addFeedback")
    Call<AdBaseResponse<String>> userFeedback(@HeaderMap Map<String, String> commheadMap, @Body RequestBody inEventParam);
}
